-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: fix flaky test-http-writable-true-after-close #17952
test: fix flaky test-http-writable-true-after-close #17952
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm -1 for this change. This removes the scope of the test itself, we are better off removing it altogether.
I'm kind of concerned that this might hide some underlining bugs or memory leak. res
should close/finish/error, why is this not happening?
Test description is misleading then as it says
and this change actually tests that. |
Means when the outer request |
I think the assumption (@apapirovski please correct me if I'm wrong) is that on next tick after inner res has finished writing, outer res has also finished writing, but yes maybe this is a wrong assumption. |
That's correct and the test does fail on older Node versions. |
Also IMO if there's a bug hiding here then it's unrelated to the description of this test and should honestly have its own test. The fact that |
It’s not a timing issue, there is something more subtle going on. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
d685368
to
673544e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Landed in 9cef060 |
PR-URL: nodejs#17952 Fixes: nodejs#16321 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Fixes: #16321
This will need full stress test CI, coming shortly. (But it did fix it on my macOS.)
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test